package com.baohulu.baohulu.utils;

import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.widget.Toast;

import com.baohulu.baohulu.MyApplication;

public class ToastUtil {

    public static void showToast(@StringRes int resId) {
        showToast(MyApplication.getAppContext().getString(resId));
    }

    public static void showToast(@NonNull String msg) {
        Toast.makeText(MyApplication.getAppContext(), msg, Toast.LENGTH_SHORT).show();
    }
}
